package face.pay.open.util.request;

import org.apache.commons.lang3.StringUtils;

import java.util.Map;

/**
 * @Auther: zkj
 * @Date: 2019/8/23 16:07
 * @Description:请求参数
 */

public class ApiRequestParam {

    private Integer oemId;

    private String sign;

    private Map<String,String> data;


    public Integer getOemId() {
        return oemId;
    }

    public void setOemId(Integer oemId) {
        this.oemId = oemId;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }

    public Boolean isoK(){
        if(this.oemId!=null && StringUtils.isNotBlank(this.sign) && (this.data!=null && !this.data.isEmpty())){
            return  true;
        }
        return  false;
    }

    @Override
    public String toString() {
        return "ApiRequestParam{" +
                "oemId=" + oemId +
                ", sign='" + sign + '\'' +
                ", data=" + data +
                '}';
    }
}
